Permalink
Browse files

added parseInt

  • Loading branch information...
1 parent 2df0c9a commit 1d28d1625e5aea3b1ae555c6138f80ce57767754 @hunterloftis committed Jan 3, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 build/cryo-0.0.2.js
  2. +1 −1 build/cryo-0.0.2.min.js
  3. +1 −1 lib/cryo.js
View
@@ -79,7 +79,7 @@
function rebuildFromReferences(item, references) {
if (starts(item, REFERENCE_FLAG)) {
- var referenceIndex = 0 | item.slice(REFERENCE_FLAG.length);
+ var referenceIndex = parseInt(item.slice(REFERENCE_FLAG.length), 10);
var ref = references[referenceIndex];
var container = unwrap(ref.value);
var contents = ref.contents;
Oops, something went wrong.
View
@@ -79,7 +79,7 @@
function rebuildFromReferences(item, references) {
if (starts(item, REFERENCE_FLAG)) {
- var referenceIndex = 0 | item.slice(REFERENCE_FLAG.length);
+ var referenceIndex = parseInt(item.slice(REFERENCE_FLAG.length), 10);
var ref = references[referenceIndex];
var container = unwrap(ref.value);
var contents = ref.contents;

0 comments on commit 1d28d16

Please sign in to comment.