 
 .directive("eastAsianWidth",
 ->
-  isEmpty = (value) ->
-    angular.isUndefined(value) or value is "" or value is null or value isnt value
-
-  int = (str) ->
-    parseInt(str, 10)
-
   require: "ngModel"
   restrict: "A"
   link: (scope, iElement, iAttrs, controller) ->

  "length",

(length) ->
  int = (str) ->
    parseInt(str, 10)
  length = int(length)
  (value) ->
    unicodeEastAsianWidth.truncate(value, length, "…")

"use strict"


isEmpty = (value) ->
  angular.isUndefined(value) or value is "" or value is null or value isnt value

int = (str) ->
  parseInt(str, 10)


angular.module("unicode_eastasianwidth", [
