Hi,
I hope to explain corretcly, this is what happen:
- have a t.js manually added to a project [OK]
- create a new project download/install with bower
- check all path files (new project with same files of old one)
- javascript error "t is not a function" [ERROR]
- copy manually the old t.js overwriting the new one from bower in the new project [OK]
line of my code code where is first call to library
function writecell(cellindex, text, fast)
{
if (fast){
$(".tableresult td").eq(cellindex).html(text);
}
else
{
$(".tableresult td").eq(cellindex).html("").t(text,{
speed:40,
speed_vary:true,
blink: 400,
fin:function(){
window.setTimeout(function()
{
$(".tableresult td").eq(cellindex).html(text);
},1000);
}
});
}
}
first lines of your t.js (old and new from bower, hope could be useful to understand what I'm using)
START OF NEW ONE
/*
_ _
| | (_)
| |_ _ ___
| __| | / __|
| |_ _| \__ \
\__(_) |___/
_/ |
|__/
t.js
a micro-templating framework in ~400 bytes gzipped
@author Jason Mooberry <jasonmoo@me.com>
@license MIT
@version 0.1.0
*/
!function(){function n(n){this.t=n}function r(n){return new Option(n).innerHTML.replace(/"/g,""")}function t(n,r)
START OF OLD ONE
/*t.js-0.5;(c)2014 Mntn(r) <http://mn.tn/> c/o Benjamin Lips <g--AT--mn.tn>;Licensed under the MIT License <http://mit-license.org/>;For documentation see http://github.com/mntn-dev/t.js or http://mn.tn/dev/t.js*/(function(d){d.fn.t=function(v,w){return this.each(function(){var a=w,h=v,b=d(this),n,q,k=!1,p="12qwertyuiop[]asdfghjkl;zxcvbnm,./~!@#$%^&*()_+:1234567890-=op"
Hi,
I hope to explain corretcly, this is what happen:
line of my code code where is first call to library
first lines of your t.js (old and new from bower, hope could be useful to understand what I'm using)
START OF NEW ONE
START OF OLD ONE
/*t.js-0.5;(c)2014 Mntn(r) <http://mn.tn/> c/o Benjamin Lips <g--AT--mn.tn>;Licensed under the MIT License <http://mit-license.org/>;For documentation see http://github.com/mntn-dev/t.js or http://mn.tn/dev/t.js*/(function(d){d.fn.t=function(v,w){return this.each(function(){var a=w,h=v,b=d(this),n,q,k=!1,p="12qwertyuiop[]asdfghjkl;zxcvbnm,./~!@#$%^&*()_+:1234567890-=op"