Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Dec 22, 2022. It is now read-only.
This repository was archived by the owner on Dec 22, 2022. It is now read-only.

-- "t is not a function" (differences between bower version and old one) #5

Copy link
Copy link

Description

@keebOo
Issue body actions

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,"&quot;")}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"

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.