quick_script 0.9.8 → 0.9.9
Sign up to get free protection for your applications and to get access to all the features.
data/lib/quick_script/version.rb
CHANGED
@@ -36,6 +36,11 @@ String.prototype.truncate = (val)->
|
|
36
36
|
ret = this.substring(0, val)
|
37
37
|
ret = ret + "..." if this.length > val
|
38
38
|
return ret
|
39
|
+
String.prototype.rjust = (length, char)->
|
40
|
+
ret = this
|
41
|
+
while (ret.length < length)
|
42
|
+
ret = char + ret
|
43
|
+
return ret
|
39
44
|
|
40
45
|
History.getRelativeUrl = ->
|
41
46
|
url = History.getState().url
|