Skip to content

First pull request#1

Closed
CuAnnan wants to merge 4 commits intoTrimps:masterfrom
CuAnnan:master
Closed

First pull request#1
CuAnnan wants to merge 4 commits intoTrimps:masterfrom
CuAnnan:master

Conversation

@CuAnnan
Copy link

@CuAnnan CuAnnan commented Jul 4, 2015

I've created a gameElements object literal which contains a node object literal and a function getElementById which works almost identically to document.getElementById except it caches.

jQuery handles this stuff in a much more robust manner, but this should do in a pinch.

I've also made some dramatic changes to the prettify function you might want to look over.

CuAnnan added 4 commits July 4, 2015 01:47
I’ve made the base determination more efficient by using logs to
determine how many times 1000 divides into number

There’s now an array of suffixes that you can add to at will

Added a primitive domCache to the system. Instead of using
document.getElementById you should now use gameElements.getElementById
This builds a cache on the fly and returns from that.
I can’t recommend enough that jQuery (or some other similar library) be
used for this instead; it’s a lot more robust than what I cobbled
together and has more efficiency programming done.
@CuAnnan CuAnnan closed this Jul 4, 2015
Trimps pushed a commit that referenced this pull request Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant